package com.fac.vo;

import com.fac.json.JacksonObjectMapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
public class RepairOrderVO {

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("订单编号")
    private String code;

    @ApiModelProperty("设备名称")
    private String equipmentName;

    @ApiModelProperty("故障描述")
    private String faultDescription;

    @ApiModelProperty("报修人姓名")
    private String reportUserName;

    @ApiModelProperty("维修工姓名")
    private String repairUserName;

    @ApiModelProperty("优先级")
    private Integer priority;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = JacksonObjectMapper.DEFAULT_ALL_DATE_TIME_FORMAT)
    private LocalDateTime startTime;

    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = JacksonObjectMapper.DEFAULT_ALL_DATE_TIME_FORMAT)
    private LocalDateTime finishTime;
} 